<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:th="http://www.thymeleaf.org">
<link rel="shortout icon" href="../resources/favicon.ico" th:href="@{/static/favicon.ico}"/>
<head>
    <title>Title</title>
</head>
<body>
    <table border="1" width="50%">
        <tr>
            <th>ID</th>
            <th>姓名</th>
            <th>性别</th>
        </tr>
        <tr th:each="user : ${userList}">
            <td th:text="${user.userid}"></td>
            <td th:text="${user.username}"></td>
            <td th:text="${user.usersex}"></td>
            <td>
                <a th:href="@{/user/updateUser(id = ${user.userid})}">修改</a>
                <a th:href="@{/user/deleteUser(id = ${user.userid})}">删除</a>
            </td>
        </tr>
    </table>
</body>
</html>